const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  name: state => state.user.userInfo.username,
  avatar: state => state.user.userInfo.staffPhoto,
  token: state => state.user.token,
  userId: state => state.user.userInfo.userId
}
// user模块下有一个 useInfo:{ info: {name:"cp"}}
// {{ $store.state.user.userInfo.info.name}}

// {{ $store.getters.name}}
export default getters
